//
//  Book.m
//  03-HomeWork
//
//  Created by dllo on 16/7/6.
//  Copyright © 2016年 daming. All rights reserved.
//

#import "Book.h"

@implementation Book
/** 自定义初始化 */
- (instancetype)initWithBookName:(NSString *)bookName
                       bookPrice:(double)bookPrice {
    self = [super init];
    if (self) {
        _bookName = bookName;
        _bookPrice = bookPrice;
    }
    return self;
}
/** 便利构造器 */
+ (instancetype)bookName:(NSString *)bookName
               bookPrice:(double)bookPrice {
    return [[Book alloc]initWithBookName:bookName bookPrice:bookPrice];
}
@end
